if __name__ == '__main__':
    # 集合相当于字典的键，没有值
    # my_set = {1,2,3,"a","b","c"}
    # 集合是一个无序

    # 集合中的元素按照哪种方式存储？
    my_set = {"a", "b", "c", 1, 2, 3}
    print(my_set)

    # 用现有集合创建一个新的集合
    my_set1 = set(my_set)
    print(my_set1)

    my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]
    # 进行类型转换为集合
    my_set2 = set(my_list)
    print(my_set2)

    my_dict = {"a": 1, "b": 2, "c": 3}
    # 将字典的 key 作为集合
    my_set3 = set(my_dict)
    print(my_set3)
